{{include file=head.tpl}}
		<div class="main_content">
			<div class="main_content_1">
				<div class="main_content_1_1">
					<div class="sort">
						<span>最新资讯</span>
						<span><a href="#">更多》</a></span>
					</div>
					<ul class="list" id="news">
						<sql out="latest_news" from="M_jab.article"  select="*" start_limit="0" where="state='1' AND mid='0'" order="aid" by="desc" limit="11">
						<foreach array="latest_news" value="row" key="key" >
							<php>$row['description']= $row['description'] ? Get_word_strpos($row['description'],40) : ''</php>
							<if condition="$key=='0'">
								<li class="cur">
									<a href="{{U(['aid'=>$row['aid'],'cid'=>$row['cid']],MODULE)}}">{{$row['title']}}</a>
									<span>{{$row['description']}}</span>
								</li>
							<else>
								<li>
									<a href="{{U(['aid'=>$row['aid'],'cid'=>$row['cid']],MODULE)}}">{{$row['title']}}</a>
									<span>{{$row['description']}}</span>
								</li>
							</if>
						</foreach>
					</ul>
				</div>
				<div class="main_content_1_2">
					<div class="layui-carousel" id="test10">
						<div carousel-item="">
							<sql out= "data" from="M_jab.article"  select="*" start_limit="0" where="state='1' AND is_pic='1'" order="aid" by="desc" limit="5">
							<foreach array="data" value="row" key="key" >
						       <div><a href="{{U(['aid'=>$row['aid'],'cid'=>$row['cid']],MODULE)}}" target="_blank"><img src="{{get_img_url($row['thumb'])}}"></a></div>
							</foreach>
						</div>
					</div>
					<div class="main_content_1_2_1">
						<div class="sort">
							<span>图文资讯</span>
							<span></span>
						</div>
						<ul class="photo_list list">
							<sql out="photo_news" from="M_jab.article"  select="*" start_limit="0" where="state='1' AND is_pic='1'" order="aid" by="desc" limit="4">
							<foreach array="photo_news" value="row" key="key" >
							<li>
								<a href="{{U(['aid'=>$row['aid'],'cid'=>$row['cid']],MODULE)}}">
									<img src="{{get_img_url($row['thumb'])}}" />
									<div class="title">{{$row['title']}}</div>
								</a>
							</li>
							</foreach>
						</ul>
					</div>
				</div>
				<div class="main_content_1_3">
					<div class="sort">
						<span>推荐资讯</span>
						<span>
							<a>更多》</a>
						</span>
					</div>
					<ul class="list">
						<sql out="com_news" from="M_jab.article"  select="*" start_limit="0" where="state='1' AND is_recommend gt '0'" order="reorder" by="desc" limit="7" >
						<foreach array="com_news" value="row" key="key" >
						<li>
							<a title="{{$row['title']}}" href="{{U(['aid'=>$row['aid'],'cid'=>$row['cid']],MODULE)}}">{{Get_word_strpos($row['title'],'20')}}</a>
						</li>
						</foreach>
					</ul>
					<div class="main_content_1_3_ad">
						<script src="/advertisement/index/index/id/1.html"></script>
					</div>
				</div>
			</div>
			<div class="c"></div>
			<div class="AD_hengfu">
				<script src="/advertisement/index/index/id/2.html"></script>
			</div>
			<div class="main_content_2">
				<div class="sort">
					<span>最新图片</span>
					<span class="sort_center">
						<sql out="categpry" from="M_jab.category"  select="*" start_limit="0" where="upcid='2'" order="reorder" by="desc" limit="7">
						<foreach array="categpry" value="row" key="key" >
						<a href="{{U(['cid'=>$row['cid']],MODULE)}}">{{$row['name']}}</a> <i>|</i>
						</foreach>				
						<div class="c"></div>
					</span>
					<span>
						<a href="">更多》</a>
					</span>
				</div>
				<ul class="photo_list list">
					<sql out="new_photo" from="M_jab.article"  select="*" start_limit="0" where="cid IN (3,4)" order="reorder" by="desc" limit="8">
					<foreach array="new_photo" value="row" key="key" >
					<li>
						<a href="{{U(['aid'=>$row['aid'],'cid'=>$row['cid']],MODULE)}}">
							<img onerror="this.src='{{WEBURL."/public/global/images/nopic.jpg"}}'" src="{{get_img_url($row['thumb'])}}" />
							<div class="title">{{Get_word_strpos($row['title'],'20')}}</div>
						</a>
					</li>
					</foreach>
				</ul>
			</div>
			
			<div class="main_content_3">
				<div class="main_content_3_1">
					<sql out="alllist" from="M_jab.category"  select="*" start_limit="0" where="upcid='1'" order="reorder" by="desc" limit="4">
					<foreach array="alllist">
					<div class="main_content_3_1_list">
						<div class="sort">
								<span>{{$row['name']}}</span>
								<span>
									<a href="{{U(['cid'=>$row['cid']],MODULE)}}">更多》</a>
								</span>
						</div>
						<ul class="list">
							<sql out="onelist" from="M_jab.article"  select="*" start_limit="0" where="cid='{$row['cid']}'" order="reorder" by="desc" limit="7">
							<foreach array="onelist" key="_key" value="_row">
							<li>
								<a href="{{U(['aid'=>$_row['aid'],'cid'=>$_row['cid']],MODULE)}}">{{$_row['title']}}</a>
							</li>
							</foreach>
						</ul>
						<div class="c"></div>
					</div>
					</foreach>
					<div class="c"></div>
				</div>
				<div class="main_content_3_2">
					<sql out="alllist" from="M_jab.category"  select="*" start_limit="0" where="upcid='7'" order="reorder" by="desc" limit="4">
					<foreach array="alllist">
					<div class="main_content_3_2_list">
						<div class="sort">
								<span>{{$row['name']}}</span>
								<span>
									<a href="{{U(['cid'=>$row['cid']],MODULE)}}">更多》</a>
								</span>
						</div>
						<ul class="list">
							<sql out="onelist" from="M_jab.article"  select="*" start_limit="0" where="cid='{$row['cid']}'" order="reorder" by="desc" limit="7">
							<foreach array="onelist" key="_key" value="_row">
								<li>
									<a href="{{U(['aid'=>$_row['aid'],'cid'=>$_row['cid']],MODULE)}}">{{$_row['title']}}</a>
								</li>
							</foreach>
						</ul>
						<div class="c"></div>
					</div>
					</foreach>
				</div>
			</div>
			<div class="c"></div>
			<div class="main_content_4">
				<div class="sort">
					<span>最新专题</span>
					<span class="sort_center"></span><span></span>
				</div>
				<ul class="photo_list list">
					<sql out="special" from="M_jab.special_list"  select="*" start_limit="0" where="1" order="reorder" by="desc" limit="8">
					<foreach array="special">
					<li>
						<a href="{{U(['special'=>'content','sid'=>$row['sid'],'id'=>$row['id']],MODULE)}}">
							<img  onerror="this.src='{{WEBURL}}/public/global/images/nopic.jpg'" src="{{get_img_url($row['thumb'])}}" />
							<div class="title">{{Get_word_strpos($row['name'],'20')}}</div>
						</a>
					</li>
					</foreach>
				</ul>
			</div>
			<div class="c"></div>
		</div>
		<script>
			$(".main_content_1_1 ul li").hover(function() {
				$(this).parent().find("li").removeClass("cur")
				$(this).addClass("cur");
			});
		</script>

{{include file=foot.tpl}}
			
			
